#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
	char str1[256];
	char str2[256];
	fgets(str1, 256, stdin);
	fgets(str2, 256, stdin);
	//scanf("%s", str1);
	//scanf("%s", str2);
	char* p = str1;
	char* q = str2;
	while (*p != '\0' || *q != '\0') {
		if (*p++ != *q++) {
			printf("unequal\n");
			return 0;
		}
	}
	printf("equal\n");
	return 0;
}